package cn.shop.front.entity.gamebind;

import cn.shop.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;

/**
 * @author : 李一涵
 * @date : Created in 2022-2-14 10:19
 * @description :
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class GameBind extends BaseEntity {

    /**
     * 用户编号
     */
    private Long userId;
    /**
     * 商户编号
     */
    private Long merchantId;
    /**
     * 游戏编号
     */
    @NotNull(message = "请选择游戏")
    private Long gameId;
    @NotNull(message = "请选择游戏分区")
    private Long partitionId;
    @NotNull(message = "请输入游戏账号")
    private String account;
    @NotNull(message = "请输入游戏名")
    private String nickname;
    /**
     * 游戏分区名
     */
    @TableField(exist = false)
    private String partitionName;
    /**
     * 游戏名
     */
    @TableField(exist = false)
    private String gameName;
    @TableField(exist = false)
    private String code;
    @TableField(exist = false)
    private String alias;

}
